<!--#layout("common/page.html",{"jsBase":"/space/js/","title":"首页"}){  -->
<!--#var member = platform.getCurrentMember();  -->
<blockquote class="layui-elem-quote">修改用户信息</blockquote>
<form class="layui-form" action="#" lay-filter="memberInfoForm" id="memberInfoForm" method="post">
  <div class="layui-form-item">
    <label class="layui-form-label">输入手机号</label>
    <div class="layui-input-inline">
      <input type="text" name="phone" id="phone" lay-filter="phone" value="${member.phone}" lay-verify="required" autocomplete="off" placeholder="请输入手机号" lay-reqText="请输入手机号码" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">昵称</label>
    <div class="layui-input-inline">
      <input type="text" name="userName" lay-verify="required" autocomplete="off" value="${member.userName}" placeholder="请输入昵称" lay-reqText="请输入昵称" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-inline">
      <button type="submit" class="layui-btn" lay-submit="" lay-filter="">立即提交</button>
    </div>
  </div>
</form>
<script>
    layui.use(['form','layer','memberApi'], function(){
        var form = layui.form;
        var $ = layui.$;
        var memberApi = layui.memberApi;

        form.on('submit(memberInfoForm)', function(){
			var f = this;
			memberApi.modifyInfo($(f),function(data) {
              console.info(data);
              Common.info("更新成功");
			});
			return false;
	    });
    });
</script>
<!--#}  -->
